import request from '@/utils/request'
export default{
    // 分页查询
    getInformation(page,limit){
        return request({
            url: '/project_source/EssentialInformation/page/'+page+'/'+limit +'/1' ,
            method: 'post'
        })
    },
    // 删除
    deleteInformation(id){
        return request({
            url: '/project_source/EssentialInformation/delete/'+id,
            method: 'post'
        })
    },
    // 模糊查询
    dimQuery(proName,page,limit){
        return request({
            url: '/project_source/EssentialInformation/dimQuery/'+proName + '/' + page + '/' + limit,
            method: 'post'
        })
    },
    // 分页查询站点
    getSitInformation(page,limit){
        return request({
            url: '/project_source/siteInfo/page/'+page+'/'+limit,
            method: 'post'
        })
    },
    // 站点删除
    deleteSitInformation(id){
        return request({
            url: '/project_source/siteInfo/delete/'+id,
            method: 'delete'
        })
    },
    // 站点模糊查询
    dimSitQuery(proName,page,limit){
        return request({
            url: '/project_source/siteInfo/byWord/'+proName + '/' + page + '/' + limit,
            method: 'post'
        })
    },
    // 摄像头分页查询
    getCameraInformation(page,limit){
        return request({
            url: '/project_source/camera/page/'+page+'/'+limit,
            method: 'post'
        })
    },
    // 摄像头删除
    deleteCameraInformation(id){
        return request({
            url: '/project_source/camera/delete/'+id,
            method: 'delete'
        })
    },
    // 摄像头模糊查询
    dimCameraQuery(proName,page,limit){
        return request({
            url: '/project_source/camera/byWord/'+proName + '/' + page + '/' + limit,
            method: 'post'
        })
    },
}